#include <ThreadSend.h>

void ThreadSD::ThreadSD()
{

}


void ThreadSD::run()
{

}

void ThreadSD::getgps()
{
    serialPort->setPort(QLatin1String("/dev/ttyS0"));
    serialPort->setBaudRate(BAUD9600);
    serialPort->setDataBits(DATA_8);
    serialPort->setParity(PAR_NONE);
    serialPort->setStopBits(STOP_1);
    serialPort->setFlowControl(FLOW_OFF);
    serialPort->setTimeout(0,10);
    serialPort->enableSending();
    serialPort->enableReceiving();
    if(serialPort->isOpen())
    {
        serialPort->close();
    }
    serialPort->open();
    serialPort->receiveData();
}
